package com.jhd.fuzhou.service;


import com.jhd.fuzhou.vo.JsonForResult;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface DossierService {

    //判断社会编号是否有用
    @GET("supervise/supervisedUnit/getSupervisedUnitList")//?creditCode=91320214MA1YKB0339
    Call<JsonForResult> getSupervisedUnitList(@Header("Authorization") String token,@QueryMap Map<String, String> params);
    //社会编号有用，查询企业的信息
    @GET("supervise/qichahca/getDepartDetailsByCreditCode")//?creditCode=91320214MA1YKB0339
    Call<JsonForResult> getDepartDetailsByCreditCode(@Header("Authorization") String token,@QueryMap Map<String, String> params);
    //保存文书号和文书路径关联
    @Headers({"Content-Type: application/json;charset=UTF-8", "Accept: application/json"})//需要添加头
    @POST("supervise/supervisedUnit/saveSupervisedUnit")
    Call<JsonForResult> saveSupervisedUnit(@Header("Authorization") String token,@Body RequestBody requestBody);

}
